import { http, jumpExport } from '@/utils/http/axios';

// 获取收货地址列表
export function List(params) {
  return http.request({
    url: '/receiverAddress/list',
    method: 'get',
    params,
  });
}

// 删除/批量删除收货地址
export function Delete(params) {
  return http.request({
    url: '/receiverAddress/delete',
    method: 'POST',
    params,
  });
}

// 添加/编辑收货地址
export function Edit(params) {
  return http.request({
    url: '/receiverAddress/edit',
    method: 'POST',
    params,
  });
}

// 获取收货地址指定详情
export function View(params) {
  return http.request({
    url: '/receiverAddress/view',
    method: 'GET',
    params,
  });
}